<template>
	<view class="classLayout pageBg">
		<custom-nav-bar title = "分类"></custom-nav-bar>
		<view class="classify">
			<theme-item v-for="item in classifyList" :key="item._id" :item="item"></theme-item>
		</view>
		
	</view>
</template>

<script setup>
const classifyList = ref([]);
const getClassify=async()=>{
	let res = await uni.request({
		url:"https://tea.qingnian8.com/api/bizhi/classify",
		header:{
			"access-key":"wytwt0105"
		}
	})
	if(res.data.errCode===0){
		classifyList.value = res.data.data
	}
}
getClassify();
</script>

<style lang="scss" scoped>
.classify{
	padding: 30rpx;
	display: grid;
	grid-template-columns: repeat(3,2fr);
}

</style>
